package com.michael.study.module1.base;

import com.michael.study.library.base.AppInfo;
import com.michael.study.network.BuildConfig;
import com.michael.study.network.INetWorkInfo;

/**
 * Description:
 *
 * <p>Created by liuguoquan on 2020/8/5 20:26.
 */
public class Module1NetWork implements INetWorkInfo {

    @Override
    public String getAppVersion() {
        return BuildConfig.VERSION_NAME;
    }

    @Override
    public int getAppVersionCode() {
        return BuildConfig.VERSION_CODE;
    }

    @Override
    public boolean isDebug() {
        return AppInfo.getInstance().isDebug();
    }

    @Override
    public String getToken() {
        return AppInfo.getInstance().getToken();
    }

    @Override
    public String getUserId() {
        return AppInfo.getInstance().getUserId();
    }
}
